/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cxhd.lis.model.newmodel;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;

/**
 *
 * @author cxhd
 */
@SuppressWarnings("serial")
public class ZkMajorTest extends Model<ZkMajorTest> {
    public final static ZkMajorTest zkMajorTestDao=new ZkMajorTest();
    
    public void deleteMajotTest(String PK){
        Db.use("mysql").update("delete from  zk_major_test where PK=?",Integer.valueOf(PK));
    }
    //select PK,TESTPK,MAJORPK,
    public void saveMajorTest(String TESTPK,String MAJORPK){
        set("TESTPK",Integer.valueOf(TESTPK))
                .set("MAJORPK", Integer.valueOf(MAJORPK))
                .save();
    }

}
